{% extends 'maintemplate.html' %}

{% load hakaze_filters %}

{% block contents %}

   <div class="postbox">
      Name :
      {% if post.url %} <a href='{{post.url}}'> {% endif %}
      {% if post.name %} <b> {{ post.name }} </b>
           {% if post.tripcode %} ID: {{ post.tripcode }} {% endif %}
      {% else %} <b> Anonymous </b> {% endif %}
      {% if post.url %} </a> {% endif %}</b>
      <br/>
      <blockquote>
      {{ post.contents|hakazefy:post.thread }}
      </blockquote>
   </div>
<br/>

{% if postform %}
{% if not post.thread.is_locked %}
<blockquote>
<h2>Reply</h2>
  <form class="newpostform" action='{% url hakaze.forums.views.threadview post.thread.channel.codename,post.thread.get_idinchannel,"last" %}' method='post'>
      {% include "forums/newpostform.html" %}
</form>
</blockquote>
{% endif %}
{% endif %}

{% if threadform %}
<blockquote>
  <h2>Create Thread</h2>
  <form class="newthreadform" action="." method="post">
      {% include "forums/newthreadform.html" %}
  </form>
</blockquote>
{% endif %}



{% endblock contents %}
